<?php
	$logfile= 'log.txt';
	$password = $_GET['p'];
	$passwordcmp = 'yourpassword';
	if( strcmp($password,$passwordcmp)==0 ){
		$logdetails="Server Log Cleard"."\n";
		$fp = fopen($logfile, "r");
		fwrite($fp, $logdetails);
		fclose($fp);
	}
?> 